package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_audit_shlx database table.
 * 
 */
@Entity
@Table(name="per_audit_shlx")
@NamedQuery(name="PerAuditShlx.findAll", query="SELECT p FROM PerAuditShlx p")
public class PerAuditShlx implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int shlxid;

	private String shlxlx;

	private String shlxxq;

	//bi-directional many-to-one association to PerAudit
	@OneToMany(mappedBy="perAuditShlx1")
	private List<PerAudit> perAudits1;

	//bi-directional many-to-one association to PerAudit
	@OneToMany(mappedBy="perAuditShlx2")
	private List<PerAudit> perAudits2;

	public PerAuditShlx() {
	}

	public int getShlxid() {
		return this.shlxid;
	}

	public void setShlxid(int shlxid) {
		this.shlxid = shlxid;
	}

	public String getShlxlx() {
		return this.shlxlx;
	}

	public void setShlxlx(String shlxlx) {
		this.shlxlx = shlxlx;
	}

	public String getShlxxq() {
		return this.shlxxq;
	}

	public void setShlxxq(String shlxxq) {
		this.shlxxq = shlxxq;
	}

	public List<PerAudit> getPerAudits1() {
		return this.perAudits1;
	}

	public void setPerAudits1(List<PerAudit> perAudits1) {
		this.perAudits1 = perAudits1;
	}

	public PerAudit addPerAudits1(PerAudit perAudits1) {
		getPerAudits1().add(perAudits1);
		perAudits1.setPerAuditShlx1(this);

		return perAudits1;
	}

	public PerAudit removePerAudits1(PerAudit perAudits1) {
		getPerAudits1().remove(perAudits1);
		perAudits1.setPerAuditShlx1(null);

		return perAudits1;
	}

	public List<PerAudit> getPerAudits2() {
		return this.perAudits2;
	}

	public void setPerAudits2(List<PerAudit> perAudits2) {
		this.perAudits2 = perAudits2;
	}

	public PerAudit addPerAudits2(PerAudit perAudits2) {
		getPerAudits2().add(perAudits2);
		perAudits2.setPerAuditShlx2(this);

		return perAudits2;
	}

	public PerAudit removePerAudits2(PerAudit perAudits2) {
		getPerAudits2().remove(perAudits2);
		perAudits2.setPerAuditShlx2(null);

		return perAudits2;
	}

}